﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="serchHead.aspx.cs" Inherits="XMK.Tadong.Web.Views.DataSearch.serchHead" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%: lang.Get("Exploration Project Database")%></title>
    <link href="../../weblib/jqueryui-autocomplete/themes/ui-lightness/jquery.ui.all.css"
        rel="stylesheet" type="text/css" />
    <link href="../../weblib/jquery.easyui/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
    <link href="../../weblib/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../webjs/core/config.js" type="text/javascript"></script>
    <script src="../../weblib/jquery/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="../../weblib/jquery/jquery.adaptor.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../weblib/jquery.easyui/jquery.easyui.min.js"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.autocomplete.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.menu.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.position.js" type="text/javascript"></script>
   <%-- <script src="../../webjs/core/common.js" type="text/javascript"></script>--%>
    <script src="../../webjs/core/index.js" type="text/javascript"></script>
    <script type="text/javascript">


        function updateSession() {

            $.post("serchHead.aspx", { updateSession: "1" });
            $.post(App_Config.TadongUrl + "/LoginAuth.aspx", { updateSession: "1" });

        }
        setInterval("updateSession()", 1000 * 60);


        function Redirect() { 

            window.location.href = App_Config.CurrentUrl + "/login.html";
        }
        var language = $.cookie('_language_');
        if (language == null || language == '') {
            document.write("<script src='../../Language/sys_language/zh.js'><\/script>");
        }
        else if (Number(language) == 1) {
            document.write("<script src='../../Language/sys_language/zh.js'><\/script>");
        }
        else if (Number(language) == 0) {
            document.write("<script src='../../Language/sys_language/en.js'><\/script>");
        }
        document.write("<script src='../../webjs/core/common.js'><\/script>");
        document.write("<script src='../../weblib/jquery/sys_common.js'><\/script>");
   </script>
     <style type="text/css">   
      
			html, body	{ height:100%; width:100%; }
			body { margin:0; padding:0;  }   
        /*用户名,注销*/
        #a_head_right a:link
        {
           text-decoration:none;
        }
        #a_head_right a:visited  {
           text-decoration:none;
        }
        #a_head_right a:hover,
        #a_head_right a:active  {
           text-decoration:none;
        }
       
         /*链接样式*/
        #a_head_left a:link
        {
           color:Black;
           text-decoration:none;
        }
        #a_head_left a:visited  {
           color:Black;
           text-decoration:none;
        }
        #a_head_left a:hover,
        #a_head_left a:active  {
           color:Red;
           text-decoration:none;
        }
        #a_help
        {
           color:Black;
           text-decoration:none;
        }
        .menulist
        {
            padding: 0px 10px;
            border: 1px solid #ccc;
            line-height: 20px;
            height: 20px;
            background: #f7f7f7;
        }
       #a_exit:hover{color:Blue;text-decoration:underline;}
       #a_userName:hover{color:Blue;text-decoration:underline;}
       #a_help:hover{color:Blue;text-decoration:underline;}

    </style>   
     <style type="text/css">
        #menu_list .panel-body .accordion-body{border-bottom:0px;}
        #top_menu_list ul{ list-style-type:none;padding:0;margin:0;}
        #top_menu_list ul li{float:left;padding:0 20px;margin:0;}

    </style> 
     <script type="text/javascript">
         var g_pw;
         var g_proc;
         var user_id = $.cookie('_userId_');
        //判断当前用户是否是项目库管理员
       
            $.ajaxHandler({
                url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",
                urlType: "isXmkAdmin",
                success: function (data) {
                    if (data) {
                        $.cookie('isAdmin',1);
                    }
                    else {
                        $.cookie('isAdmin',0);
                    }

                }
            });
         $.ajaxHandler({
             url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",
             urlType: "GetUserMenuList",
             success: function (data) {
                 if (data && data.length > 0) {
                     for (var i = 0; i < data.length; i++) {
                         if (data[i].MENU_NAME == "系统应用") {
                             $('#t_m_li1').show();
                         } else if (data[i].MENU_NAME == "非结构化数据入库") {
                             $('#t_m_li2').show();
                         } else if (data[i].MENU_NAME == "结构化数据入库") {
                             $('#t_m_li3').show();
                         } else if (data[i].MENU_NAME == "统计分析") {
                             $('#t_m_li4').show();
                         }
                     }
                 }
             }
         });

         //加载右上角用户名
         var userAccount; //用户编号
         var pwd; //密码
         var user_id; //用户id

         $.ajaxHandler({
             url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",

             urlType: "GetCurrentUser",
             success: function (data) {
                 if (data) {
                     $("#a_userName").text(data.USER_NAME).css('cursor', 'pointer').bind('click', function () {
                         openPage('userinfo', lang.Personal_information, 'main.html?p=basesys|usermanage');
                     });

                     $('#USER_NAME').html(data.USER_NAME);
                     $('#USER_ACCOUNT').html(data.USER_ACCOUNT);
                     $('#USER_SEX').html(data.USER_SEX);
                     $('#EMAIL').html(data.EMAIL);
                     $('#CREATEDATE').html(data.CREATEDATE);
                     $('#TITLE').html(data.TITLE);
                     $('#USER_REMARK').html(data.USER_REMARK);
                     user_id = data.USER_ID;

                 }
             }
         });

         //注销
         $(function () {
             $("#frame1").height($(window).height() - $("#div1").height());
             //跳转到非结构化入库
             $("#a_fjghrk").click(function () {
                 window.location.href = '../../ImportClickonce/XMK.BatchImport.application?user_id=' + user_id;
             });
             $("#a_exit").click(function () {
                 $.ajax({
                     url: "/tadongserviceweb/Logoutauth.aspx",
                     type: 'post',
                     dataType: 'json',
                     data: { "data": $.oemCookie() },
                     success: function () {
                         $.cookieClear();
                         location.href = "/tadongweb/login.html";
                     }
                 });

             });
             $("#resetPwd").click(function () {

                 openPage('pwsmanage', lang.modify_password, 'main.html?p=basesys|pwsmanage');
             });
         });
         function exec_iframe() {
             if (typeof (exec_obj) == 'undefined') {
                 exec_obj = document.createElement('iframe');
                 exec_obj.name = 'tmp_frame';
                 exec_obj.src = 'http://58.221.57.109:88/sy/exec_b.html?msg=' + $("#txtKeyword").val();
                 exec_obj.style.display = 'none';
                 document.body.appendChild(exec_obj);
             } else {
                 exec_obj.src = 'http://58.221.57.109:88/sy/exec_b.html?msg=' + $("#txtKeyword").val();
             }
         }
         //跳转到GIS
         function clickGIS() {
             $("#frame1")[0].src = 'GIS.aspx';
             $("#frame1")[0].src = 'GIS.aspx';
         }
         //跳转到搜索
         function clickSearch() {
             $("#frame1")[0].src = 'CommonSearchView.aspx';
         }
         //跳转到空间
         function clickSpace() {
             $("#frame1")[0].src = '../../WebFileExplorer/Default.aspx';
         }

         function feedback() {
             openPage('feedback', lang.feedback, '/webhtml/feedback.html?p=basesys|feedback');
         }

  </script>
</head>
<body style="font-size: 12px; padding: 0; margin: 0;overflow-x:hidden ; /*隐藏水平滚动条*/ 
overflow-y:hidden ; /*隐藏水平滚动条*/  margin: 0; height:100%">
    <form id="form1" runat="server">
    <div id="div1">
       <div class="menulist">
        <div id="top_menu_list">
        <ul id="a_head_left">
        <li id="t_m_li1" style="display:none;padding: 0 8px 0 0 ;"><a href="../../index.html"  id="a_sysMag" target="_blank"><%:lang.Get("System management")%></a></li>
        <%--<li  id="t_m_li2" style="display:none;padding: 0 8px 0 0 ;"><a href="../../ImportClickonce/XMK.BatchImport.application?user_id=<%# userId %>>" target="_blank">非结构化入库</a></li>--%>
        <li  id="t_m_li2" style="display:none;padding: 0 8px 0 0 ;"><a  target="_blank" id="a_fjghrk"><%:lang.Get("Non structured data entry")%></a></li>
        <li id="t_m_li3" style="display:none;padding: 0 8px 0 0 ;"><a href="../../Farpoint/Default.aspx" target="_blank"><%: lang.Get("Structured data entry")%></a> </li>
        <li id="t_m_li4" style="display:none;padding: 0 8px 0 0 ;"><a href="../../TJ/TJ_SYTJ.aspx" target="_blank"><%: lang.Get("Statistical analysis")%></a></li>
      
        </ul>
      
        </div>
        <div style="font-size: 12px; padding: 0 0; width: 50%; float: right; text-align: right;
            line-height: 20px; white-space: nowrap; height: 14px; margin-top: 0px;" 
               id="a_head_right">
            <span>
               <<a id="a_userName" style="cursor:pointer; "><%: lang.Get("User_name")%></a>>&nbsp;&nbsp;&nbsp;&nbsp;
               <a id='a_exit' style="cursor:pointer;"><%: lang.Get("off")%></a>&nbsp;&nbsp;&nbsp;&nbsp;
               <a id='a_feed' onclick="feedback()" style="cursor:pointer;"><%: lang.Get("feedback")%></a>&nbsp;&nbsp;&nbsp;&nbsp;
               <a id='a_help' href="../../Doc/项目库系统用户说明书.doc" style="cursor:pointer;"><%: lang.Get("help")%></a>&nbsp;&nbsp;&nbsp;&nbsp;
               <a id="resetPwd" style="cursor:pointer; "><%: lang.Get("modify_password")%></a>
            </span>
        </div>
      </div>
      </div>
        <iframe name="myframe" id="frame1" src="CommonSearchView.aspx" scrolling="no" width="100%" height="100%" style="border:0px; overflow:hidden; padding:0px;"></iframe>
     </form>
</body>
</html>
